const router = {
    tpl:'<ul> <% _.forEach(data,function(page,index){ %> <li><div><div class="topt newcs"><span onclick="site.go()" data-id="<%= page.id%>" data-url="<%= (page.children.length>0?0:page.url) %>" data-type="<%= page.name%>"><%= page.name %></span></div>' +
    '<ul style="display: none;"><% _.forEach(page.children,function(item){ %>' +
    '<li><div class="newcs"><span onclick="site.go()" data-ind="<%= index%>" data-url="<%= item.url %>" data-id="<%= item.id%>" data-type="<%= page.name%>" data-types="<%= item.name%>"><%= item.name%></span></div></li>' +
    '<% }); %></ul>' +
    '</div></li><% }); %></ul>',
    tpls:'<div class="header_nav"><img src="<%= site.publicImagePath%>/sdly/logo6.png" /><ul> <% _.forEach(data,function(page,index){ %> <li class="navs"><div><div><span onclick="site.go()" data-url="<%= (page.children.length>0?0:page.url) %>" data-id="<%= page.id%>" data-type="<%= page.name%>"><%= page.name %></span></div>' +
    '<ul class="<%= page.children.length>0&&page.children[0].children.length>0?'+'"box":""'+'%>" style="width: <%= page.children.length>0&&page.children[0].children.length>0?130*page.children.length:130%>px"><% _.forEach(page.children,function(item){ %>' +
    '<li class="cell-1"><div class="nav_item"><span onclick="site.go()" data-ind="<%= index%>" data-url="<%= item.url %>" data-id="<%= item.id%>" data-type="<%= page.name%>" data-types="<%= item.name%>"><%= item.name%></span></div>' +
    '<ol><% _.forEach(item.children,function(it){ %><li>' +
    '<div class="nav_items"><span onclick="site.go()" data-ind="<%= index%>" data-url="<%= it.url %>" data-id="<%= it.id%>" data-type="<%= page.name%>" data-types="<%= it.name%>"><%= it.name%></span></div>' +
    '</li><% }); %></ol></li>' +
    '<% }); %></ul>' +
    '</div></li><% }); %></ul></div>',
    data:[]
}
module.exports = router